package fun.stgoder.bmwf.auth.client;

import fun.stgoder.bmwf.core.domain.R;
import fun.stgoder.bmwf.core.domain.dto.Test2DTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("bmwf-test2-service")
public interface Test2Client {
    @GetMapping("/test2/f1")
    R<List<Test2DTO>> f1(@RequestParam(value = "p", required = false) String p);
}
